$(function() {
	$("#login").click(function() {
		$.ajax({
			type: "POST",
			url: "http://yx.fxtourong.com/V1/Member/doRegister",
			data: {
				phone : $("#username").val(),
				password : $("#password").val()
			},
			dataType: "json",
			success: function(data) {
				console.log(data);
				var code = data.code;
				console.log(code);
				if(code == "1") {
					location.href = "index.html";
				}
			}
		});
	});
});